<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Room extends BaseModel
{
	protected $table = 'rooms';
    // 关联房型表
    public function scale()
    {
        return $this->belongsTo(Scale::class);
    }
    
    public function order()
    {
    	return $this->hasMany(Order::class, 'room_id', 'id');
    }
}
